package ooday02.homework.AnimalCase1;

public class Dog extends Animal implements Swim {
    Dog() {
    }

    Dog(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(age + "岁的" + color + "色的狗狗" + name + "在吃骨头...");
    }

    void lookHome() {
        System.out.println(age + "岁的" + color + "色的狗狗" + name + "在看家中...");
    }

    @Override
    public void swim() {
        System.out.println(age + "岁的" + color + "色的狗狗" + name + "在河里游泳...");
    }


}
